<?php
/**
 * Copyright (C), 2016-2018, Shall Buy Life info. Co., Ltd.
 * FileName:ExampleService.php
 * Description: 说明
 *
 * @author
 * @Create Date
 * @Update Date
 * @version v1.0
 */

namespace Example\Services;

use Example\Models\Example;

class ExampleService
{
    /**
     * FunctionName：getAll
     * Description：查询全部
     * Author：lwl
     * @param $filter
     * @return mixed
     */
    public function getAll($filter)
    {
        return Example::query()->filter($filter)->get();
    }
}
